package spea;

import java.util.Comparator;

public class FitnessComparator<Genotype> implements Comparator<Individual<Genotype>> {

	@Override
	public int compare(Individual<Genotype> c1, Individual<Genotype> c2) {
		int fitComp = ((Double) c1.getFitness()).compareTo(c2.getFitness());

		return fitComp;
	}
}
